﻿using System.ComponentModel.DataAnnotations;

namespace MVVMtutorialAdvanced.Web
{
	public class CountryDTO
	{
		[Key]
		[Display(Order = 1, AutoGenerateField = false)]
		public int Id { get; set; }

		[Required(AllowEmptyStrings = false, ErrorMessage = "Muss- Feld")]
		[StringLength(30, ErrorMessage = "Maximal 30 Buchstaben")]
		[Display(Name = "Stadt", Order = 2)]
		public string Alias { get; set; }
	}
}